{extend name='template/base'}{/extend}
{block name='style'}{/block}
{block name='script'}{/block}
{block name='content'}
<div class="row">
    <div class="col-xs-12">
        <div class="box">
            <div class="box-body">
                <div id="toolbar">
                    <div class="btn-group pull-left mr10">
                        <a class="btn btn-primary" id="add_btn"><i class="fa fa-plus"></i> 新增管理员</a>
                    </div>
                </div>
                <table id="table"
                       data-toggle="table"
                       data-show-refresh="true"
                       data-side-pagination="server"
                       data-pagination="true"
                       data-url="{:url('Admin/index_data')}"
                >
                    <thead>
                    <tr>
                        <th data-field="nick">昵称</th>
                        <th data-field="role">角色分组</th>
                        <th data-field="title">状态</th>
                        <th data-field="name">姓名</th>
                        <th data-field="mobile">电话</th>
                        <th data-field="reg_time">注册时间</th>
                        <th data-field="reg_ip">注册ip</th>
                        <th data-field="last_login_time">最后登录时间</th>
                        <th data-field="last_login_ip">最后登录ip</th>
                        <th data-field="login_count">累计登录次数</th>
                        <th data-field="operate" data-formatter="formatOperate" data-events="operateEvents" >操作</th>
                    </tr>
                    </thead>
                </table>
            </div><!-- /.box-body -->
        </div><!-- /.box -->

    </div><!-- /.col -->
</div><!-- /.row -->
{/block}
{block name='script_extra'}
<script>
    // <editor-fold defaultstate="collapsed" desc="格式化url">
    function urlFormat(url) {
        if( url.indexOf('.html')){
            url=url.replace('.html','')
        }
        return url;
    }
    // </editor-fold>
    // <editor-fold defaultstate="collapsed" desc="添加">

    // </editor-fold>
    // <editor-fold defaultstate="collapsed" desc="操作按钮">

    // </editor-fold>
    // <editor-fold defaultstate="collapsed" desc="操作函数">

    // </editor-fold>
    // <editor-fold defaultstate="collapsed" desc="时间格式化">

    // </editor-fold>
    // <editor-fold defaultstate="collapsed" desc="状态格式化">

    // </editor-fold>

</script>
{/block}